package com.davai.castorplay;

import java.io.FileWriter;
import java.io.IOException;

import org.exolab.castor.mapping.MappingException;
import org.exolab.castor.tools.MappingTool;

public class CastorMapper {
	public static void main(String args[]) throws IOException, MappingException {
		MappingTool mappingTool = new MappingTool();
		FileWriter writer = new FileWriter("mapping1.0.xml");
		
		mappingTool.addClass(Person.class);
		
		mappingTool.write(writer);
	}
}
